package com.encyclopedia.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class User implements Serializable {
    @Serial
    private static final long serialVersionUID = 8415216998654327301L;
    @TableId(type = IdType.AUTO)
    private Integer userId;
    private String username;
    @TableField(value = "nick_name")
    private String nickname;
    private String role;
    private String email;
    private String phone;
    private String sex;
    private String password;
    @TableField(exist = false)
    private String newPassword;
    private Integer status;
    private String updateBy;
}